
<link href="<{$res_url}>/css/wap/public.css" rel="stylesheet" type="text/css">
<link href="<{$res_url}>/css/wap/home.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<{$res_url}>/js/wap/jquery.min.js"></script>
</head>

<body>
	
    <section class="warp">
    	<div class="content">
<!--            <header>
            	<div class="search fl"><a href="#"><img src="<{$res_url}>/images/wap/icon1.png" width="20"></a></div>
                <div class="logo">选择收货地址</div>
            </header>-->
            
            <section class="chose_address">
                <{foreach from=$addrs item=addr}>
            	<dl>
                	<dt class="left">
                    	<label class="chose">
                            <div class="checkboxFour">
                                <input type="checkbox" value="<{$addr.addr_id}>" id="addr_<{$addr.addr_id}>" class="check_addr" name="addr" <{if $addr.def_addr == '1'}>checked<{/if}> />
                                <ins for="addr_<{$addr.addr_id}>"  class="check_addr"></ins>
                            </div>
                        </label>
                    </dt>
                    <dt class="right"><a href="amember-addredit-<{$addr.addr_id}>.html">编辑</a></dt>
                    <dd>
                    	<h2><span><{$addr.mobile}></span><b>收货人：<{$addr.name}></b></h2>
                        <p>收货地址：<{$addr.txt_area}> <{$addr.addr}></p>
                    </dd>
                </dl>
                <{/foreach}>
<!--                <dl>
                	<dt class="left">
                    	<label class="chose">
                            <div class="checkboxFour">
                                <input type="checkbox" value="1" id="checkboxFourInput" name="" checked />
                                <ins for="checkboxFourInput"></ins>
                            </div>
                        </label>
                    </dt>
                    <dt class="right"><a href="#">编辑</a></dt>
                    <dd>
                    	<h2><span>138XXXXXXXX</span><b>收货人：晓明</b></h2>
                        <p>收货地址：广东省广州市天河区珠江东路30号广州银行大厦18楼</p>
                    </dd>
                </dl>-->
                <a href="amember-addradd.html" class="chose_address_btn">新增收货地址</a>
            </section>
            
        </div>
    </section>
    <script>
        $("[name=addr]").change(function(){
            var addr_id = $("[name=addr]").val();
            $.getJSON("amember-checkaddr-"+addr_id+".html",'',function(re){
                if(re.status){
                    location.href="amember-cart.html?addr_id="+addr_id;
                }else{
                        alert(re.data)
                }
            })
            //location.href("amember-checkaddr-"+addr_id+".html")
        });
    </script>